<?php
/**
 * @var $jobsList
 * @var $provinceList
 */
?>
<div class="mainJobs mainWith">
    <div class="breadCrumb">
        当前位置：<a href="/">首页</a> > <a href="/jobs"><?php echo $_COOKIE['city']?></a> > <a href="javascript:void(0)">找工作</a>
    </div>
    <div class="jobsList">
        <h1 class="jobsListHeader clearFix margin0">
            教师招聘
        </h1>
        <div class="jobsListContent">
            <?php foreach ($jobsList as $item){
                ?>
                <div class="jobsListDetail clearFix">
                    <div class="jobsListDetailLeft">
                        <div class="jobsListDetailHeader clearFix">
                            <div class="jobsListDetailHeaderLeft">
                                <a href="/jobs/<?php echo $item->category->name_py?>/<?php echo $item->id?>.html" title="<?php echo $item->name?>"><?php echo $item->name?></a>
                            </div>
                            <div class="jobsListDetailHeaderRight">
                                <a href="/school/<?php echo $item->school->id?>.html" title="<?php echo $item->school->title?>"><?php echo $item->school->title?></a>
                            </div>

                        </div>
                        <div class="jobsListDetailContent">
                            <p>学历要求：<?php echo $item->education?>&nbsp;&nbsp;|&nbsp;&nbsp;工作经验：<?php echo $item->job_experience?>&nbsp;&nbsp;|&nbsp;&nbsp;工作地点：<?php echo $item->school->location?>&nbsp;&nbsp;|&nbsp;&nbsp;招聘人数：<?php echo $item->need_num?>&nbsp;&nbsp;|&nbsp;&nbsp;薪资待遇：<span class="zp_jobs_salary"><?php echo $item->salary?></span></p>
                            <div class="shortIntro">
                                <?php echo $item->job_intro?>
                            </div>
                        </div>
                    </div>
                    <div class="publish_date_wrap"><span class="publishTime"><?php echo mb_ereg_replace('^\s*', '', explode(' ',$item->publish_date)[0])?></span>发布</div>
<!--                    <div class="jobsListDetailRight vivify">-->
<!--                        <span class="collect">-->
<!--                            <img src="/img/heart_one.png" alt="收藏">-->
<!--                        </span>-->
<!--                            收藏-->
<!--                    </div>-->
                </div>
            <?php
            }?>
            <?php if($jobsList->count() === 0){
                ?>
                <p style="font-size: 18px;text-align: center;margin: 30px 0 0 0;">暂无数据</p>
                <?php
            }?>
            <div class="page-wrapper">
                <!--分页代码-->
                <?php
                    $url = '/jobs/p';
                    echo $this->element('paginator', [  "url" => $url ]);
                ?>
            </div>
        </div>
    </div>
</div>